package org.melanesia.sql;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import org.melanesia.converters.JavaToJdbcConverter;


public class AbstractMetaData {

    private Map<String, InputParameter> inputParameters = new HashMap<String, InputParameter>();

    public AbstractMetaData() {
        super();
    }
    
    public void setInputParameter(String name, Object value) {
        inputParameters.put(name, new InputParameter(name, value));
    }

    public void setInputParameter(String name, Object value, JavaToJdbcConverter converter) {
        inputParameters.put(name, new InputParameter(name, value, converter));
    }

    Collection<String> getInputParameterNames() {
        return inputParameters.keySet();
    }
    
    InputParameter getInputParameter(String name) {
        return inputParameters.get(name);
    }

}